<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Star Pattern</title>
<link rel="stylesheet" href="p1.css">
</head>
<body>

<div class="container" id="starContainer"></div>

<!-- 
<script>
  function generateStarLine(n, isBlue) {
    let line = '';
    let starClass = isBlue ? 'blue-star' : 'red-star';
    for (let i = 0; i < n; i++) {
      line += '<span class="' + starClass + '"></span>';
    }
    return '<div>' + line + '</div>';
  }

  function generateStarPattern() {
    let pattern = '';
    for (let i = 1; i <= 9; i += 2) {
      pattern += generateStarLine(i, true);
    }
    for (let i = 9; i >= 1; i -= 2) {
      pattern += generateStarLine(i, false);
    }
    return pattern;
  }

  document.getElementById('starContainer').innerHTML = generateStarPattern();
</script>
 -->

<script src="p1.js"></script>

</body>
</html>